#include<stdio.h>
int main(void)
{
    int a[20];
    int max,min,i;

    for(i=0;i<20;i++){
        scanf("%d",&a[i]);
    }

    max=min=a[0];

    for(i=0;i<20;i++){
        if(max<a[i])
            max = a[i];
        if(min>a[i])
            min = a[i]; 
    }
    
    printf("The maximum value is %d\n",max);
    printf("The minimum value is %d",min);

    return 0;
    
}